package com.fortune.dto.in.cOrder;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;

public class PurchaseGiftDto {
    @ApiModelProperty(example = "厂商id")
    private String mid;
    @ApiModelProperty(example="商品id")
    private String productId;
    @ApiModelProperty(example = "订货数量")
    private float orderNum;
    @ApiModelProperty(example = "单价")
    private BigDecimal unitPrice;
    @ApiModelProperty(example = "优惠政策id")
    private String policyId;
    @ApiModelProperty(example = "商品金额")
    private BigDecimal price;
    @ApiModelProperty(example = "回空箱数量")
    private float backBoxNum;
    @ApiModelProperty(example = "押金金额")
    private BigDecimal dprice;

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public float getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(float orderNum) {
        this.orderNum = orderNum;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getPolicyId() {
        return policyId;
    }

    public void setPolicyId(String policyId) {
        this.policyId = policyId;
    }

    public float getBackBoxNum() {
        return backBoxNum;
    }

    public void setBackBoxNum(float backBoxNum) {
        this.backBoxNum = backBoxNum;
    }

    public BigDecimal getDprice() {
        return dprice;
    }

    public void setDprice(BigDecimal dprice) {
        this.dprice = dprice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "PurchaseGiftDto{" +
                "mid='" + mid + '\'' +
                ", productId='" + productId + '\'' +
                ", orderNum=" + orderNum +
                ", unitPrice=" + unitPrice +
                ", policyId='" + policyId + '\'' +
                ", price=" + price +
                ", backBoxNum=" + backBoxNum +
                ", dprice=" + dprice +
                '}';
    }
}
